﻿using System;

namespace UtilZ.Dotnet.Ex.Json
{
    /// <summary>
    /// json序列特性
    /// </summary>
    public abstract class JsonBaseAttribute : Attribute
    {
        private readonly int _order = -1;
        /// <summary>
        /// 序列化顺序
        /// </summary>
        public int Order
        {
            get { return _order; }
        }


        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="order">序列化顺序</param>
        public JsonBaseAttribute(int order)
        {
            this._order = order;
        }
    }
}
